package com.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.auth.model.system.SysMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 菜单表 Mapper 接口
 * </p>
 *
 * @author tang
 * @since 2023-07-16
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {
    /**
     * 根据用户id获取菜单列表
     *
     * @author Tangjiachang
     * @date 22:49 2023/7/20
     * @param userId
     * @return List<SysMenu>
     **/
    List<SysMenu> findMenuListByUserId(@Param("userId") Long userId);
}
